package com.ruoyi.framework.sso.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 用户中心 token 响应体
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserCenterTokenResponse
{
    /**
     * access_token
     */
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * refresh_token
     */
    @JsonProperty("refresh_token")
    private String refreshToken;

    /**
     * token 类型，通常为 Bearer
     */
    @JsonProperty("token_type")
    private String tokenType;

    /**
     * 有效期，单位秒
     */
    @JsonProperty("expires_in")
    private Long expiresIn;

    /**
     * refresh_token 有效期
     */
    @JsonProperty("refresh_token_expires_in")
    private Long refreshTokenExpiresIn;

    /**
     * 授权范围
     */
    private String scope;

    public String getAccessToken()
    {
        return accessToken;
    }

    public void setAccessToken(String accessToken)
    {
        this.accessToken = accessToken;
    }

    public String getRefreshToken()
    {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken)
    {
        this.refreshToken = refreshToken;
    }

    public String getTokenType()
    {
        return tokenType;
    }

    public void setTokenType(String tokenType)
    {
        this.tokenType = tokenType;
    }

    public Long getExpiresIn()
    {
        return expiresIn;
    }

    public void setExpiresIn(Long expiresIn)
    {
        this.expiresIn = expiresIn;
    }

    public Long getRefreshTokenExpiresIn()
    {
        return refreshTokenExpiresIn;
    }

    public void setRefreshTokenExpiresIn(Long refreshTokenExpiresIn)
    {
        this.refreshTokenExpiresIn = refreshTokenExpiresIn;
    }

    public String getScope()
    {
        return scope;
    }

    public void setScope(String scope)
    {
        this.scope = scope;
    }
}
